package com.dianping.cat.consumer.storage.model.entity;

import com.dianping.cat.consumer.storage.model.BaseEntity;
import com.dianping.cat.consumer.storage.model.IVisitor;






public class Sql
  extends BaseEntity<Sql>
{
  private String m_id;
  private String m_statement;
  private int m_count;

  public Sql() {}

/* 20 */   public Sql(String id) { this.m_id = id; }




/* 25 */   public void accept(IVisitor visitor) { visitor.visitSql(this); }



  public boolean equals(Object obj) {
/* 30 */     if (obj instanceof Sql) {
/* 31 */       Sql _o = (Sql)obj;

/* 33 */       if (!equals(getId(), _o.getId())) {
/* 34 */         return false;
      }

/* 37 */       return true;
    }

/* 40 */     return false;
  }


/* 44 */   public int getCount() { return this.m_count; }



/* 48 */   public String getId() { return this.m_id; }



/* 52 */   public String getStatement() { return this.m_statement; }

/*    */


  public Sql incCount() {
/* 65 */     this.m_count++;
/* 66 */     return this;
  }

  public Sql incCount(int count) {
/* 70 */     this.m_count += count;
/* 71 */     return this;
  }


  public void mergeAttributes(Sql other) {
/* 76 */     assertAttributeEquals(other, "sql", "id", this.m_id, other.getId());

/* 78 */     if (other.getStatement() != null) {
/* 79 */       this.m_statement = other.getStatement();
    }

/* 82 */     this.m_count = other.getCount();
  }

  public Sql setCount(int count) {
/* 86 */     this.m_count = count;
/* 87 */     return this;
  }

  public Sql setId(String id) {
/* 91 */     this.m_id = id;
/* 92 */     return this;
  }

  public Sql setStatement(String statement) {
/* 96 */     this.m_statement = statement;
/* 97 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/storage/model/entity/Sql.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */